<template>
	<view class="u-p-30"><u-parse :content="agreement.agreementBody"></u-parse></view>
</template>

<script>
export default {
	data() {
		return {
			agreement: {}
		};
	},
	async onLoad(option) {
		// id: 用户协议 2 隐私协议 1
		const res = await this.$api.agreement.getInfo({
			agreementType: option.id
		});
		if (res.code === 200) {
			this.agreement = res.data;
		}
	}
};
</script>

<style lang="scss"></style>
